time: 2021.3
# -*- coding: utf-8 -*-
# @Time    : 2021/4/21 21:47
# @Author  : luogan
# @Email   : 468640092@qq.com
# @File    : 两个列表合并成一个列表.py
# @Software: PyCharm.

a = [11, -3, 4, 5, 2, 1, 8]
b = [9, 3, 4, 2, 6, -10]
c = a + b
def total(alist):
    z = len(alist)
    for i in range(0, z-1):
        for j in range(0, z-1-i):
            if alist[j] > alist[j+1]:
                alist[j], alist[j+1] = alist[j+1], alist[j]
    return c
print(total(c))

